//---------------------------------------------------------------------------
#pragma hdrstop
#include "dscollection.h"
#include "RmlObject.h"
#include "util.h"
#include <stdio.h>

//---------------------------------------------------------------------------

#pragma package(smart_init)
__fastcall DSCollection::DSCollection(char * s_parser)
{
        Alias=NULL;
        InitQuery=NULL;
        Aliases=NULL;
        SeqQuery=NULL;
        SeqNames=NULL;
        initAction=NULL;
        Visual=false;
 char * p=NULL,t[256];
 char * temp = new char[strlen(s_parser)+1];
 sprintf(t,"Alias_%x",this);

 strcpy(temp,s_parser);
 p = FindNameValue(temp,"INITACTION","\"");
 if(p) sInitAction = p;

 strcpy(temp,s_parser);
 p = FindNameValue(temp,"ALIASES","\"");
 if(p) sAliases=p;

 strcpy(temp,s_parser);
 p = FindNameValueEqual(temp,"ALIAS");
 Alias = (p?p:t);

 strcpy(temp,s_parser);
 p = FindNameValue(temp,"INITQUERY","\"");
 if(p) sInitQuery=p;

 strcpy(temp,s_parser);
 p = FindNameValue(temp,"SEQQUERY","\"");
 if(p) sSeqQuery=p;

 strcpy(temp,s_parser);
 p = FindNameValue(temp,"SEQNAMES","\"");
 if(p) sSeqNames=p;

}

